package com.mywork.mvpkodeinxml.net.api

import com.mywork.mvpkodeinxml.model.request.CommonFunc
import com.mywork.mvpkodeinxml.model.response.CommonResp
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST

/**
 * Created by mywork on 17/3/16.
 */

interface CommonApi {
    @Headers("Content-Type: text/xml; charset=utf-8", "Charset: UTF-8", "SOAPAction: http://tempuri.org/CommonFunc")
    @POST("/KrsIPUI/T95Service/TaskService.asmx")
    fun getUserList(@Body requestEnvelope: CommonFunc): Observable<CommonResp>
}
